/* Tester class for the VOIP directory server and client. 
 */


import java.net.*;

public class Tester
{
	public static void main(String[] args)
	{
		DirClient test = new DirClient("lore.cs.purdue.edu",65535);
		//test.login("test","127.0.0.1");
		test.login("hello","132134354");
		test.login("sadfsad","sadfsad");
		String[] users = test.getUsers("hello");
		
		for(int i = 0; i < users.length; i++)
		{
			System.out.println(users[i]);
		}
		
		System.out.println(test.getIP("hello"));
		
		//test.logout("test","127.0.0.1");
		/*test.logout("hello","132134354");
		test.logout("sadfsad","sadfsad");*/
		
		test.closeAll();
	}

}
